package com.shiwaixiangcun.monitor.service;

import com.shiwaixiangcun.core.plugin.dto.MonkeyDto;
import com.shiwaixiangcun.core.plugin.report.pdf.PdfData;
import com.shiwaixiangcun.core.service.BaseService;
import com.shiwaixiangcun.monitor.domain.WorkOrder;
import com.shiwaixiangcun.monitor.dto.WorkOrderDetailDto;
import com.shiwaixiangcun.monitor.dto.WorkOrderDto;
import com.shiwaixiangcun.monitor.dto.WorkOrderListDto;
import com.shiwaixiangcun.monitor.dto.WorkOrderQueryDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * Created by Administrator on 2017-11-23.
 */
public interface WorkOrderService extends BaseService<WorkOrder,Long> {

    void addWorkOrder(MonkeyDto monkeyDto);

    WorkOrderListDto getWorkOrderList(Pageable pageable, WorkOrderQueryDto workOrderQueryDto);

    String findCurrentMaxNumber();

    void handle(Long workOrderId, String content);

    void handle(Long workOrderId, Long userId);

    void handle(Long workOrderId);

    WorkOrderDetailDto getDetail(Long id);

    PdfData print(Long workOrderId);

    Map getWorkOrderToFigure();
}
